package com.example.jixeishi1.service.impl;


import com.example.jixeishi1.dao.LoginDao;
import com.example.jixeishi1.entity.User;
import com.example.jixeishi1.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoginServiceimpl implements LoginService {

    @Autowired
    LoginDao loginDao;
    @Override
    public List getuser(User user) {
        List list=loginDao.getuser(user);
        System.out.println(list);
        return list;
    }

    @Override
    public int intouser(User user) {
        int n=loginDao.intouser(user);
        return n;
    }


}
